package com.zlc.workflow.core.base.controller;


import com.zlc.workflow.core.base.model.WorkflowUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "测试api")
@RestController
@Slf4j
@RequestMapping("/api/test")
public class TestController {


    /**
     * 查询流程定义
     */
    @ApiOperation(value = "用户")
    @GetMapping(value = "/user")
    public WorkflowUser queryList(){
        WorkflowUser user = new WorkflowUser();
        user.setUserAccount("liyuyou");
        return user;
    }

    /**
     * 查询流程定义
     */
    @ApiOperation(value = "用户")
    @GetMapping(value = "/test")
    public void test() throws InterruptedException {
        System.out.println("进入请求测试");
        Thread.sleep(60 * 60 * 1000);
    }


}
